const crypto = require('crypto')

const secret = 'abcdefg'
const hash = crypto.createHash('md5')
                   .update(secret)
                   .digest('hex')
console.log(hash)